Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize for timer timeout extension #184

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

cmeissl
Copy link
Contributor

@cmeissl cmeissl commented May 17, 2024

No description provided.

@notgull
Copy link
Member

notgull commented May 19, 2024

@cmeissl The CI issues are fixed on master, please rebase

@notgull
Copy link
Member

notgull commented Jun 1, 2024

@cmeissl try again

@cmeissl cmeissl force-pushed the perf/timer_extend branch 2 times, most recently from a733023 to a21bc53 Compare June 8, 2024 13:02
@cmeissl
Copy link
Contributor Author

cmeissl commented Jun 8, 2024

@cmeissl try again

The CI failed because the version (latest) of criterion depends on clap which requires a newer MSRV. I downgraded criterion for now, but maybe it would also be an option to split the tests and the MSRV checks in the future.

@cmeissl cmeissl force-pushed the perf/timer_extend branch 2 times, most recently from bbee61f to f7ed219 Compare June 8, 2024 13:45
Copy link

codecov bot commented Jun 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.92%. Comparing base (9558927) to head (24a4544).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #184      +/-   ##
==========================================
+ Coverage   85.63%   85.92%   +0.28%     
==========================================
  Files          13       14       +1     
  Lines        1852     1989     +137     
==========================================
+ Hits         1586     1709     +123     
- Misses        266      280      +14     
Flag Coverage Δ
ubuntu-latest 85.92% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

add benchmarks specifically targeting the use-case
of extending a timer by removing and re-registering
in case we constantly extend the same timer the
head might already point to the timer we want
to cancel. in this case we can directly remove the
timer to reduce building up the heap unnecessarily.
it is more likely an older timeout gets canceled
and replaced. reversing the search might yield
some performance improvement in this case
@cmeissl
Copy link
Contributor Author

cmeissl commented Jun 8, 2024

@notgull I had to downgrade a few other deps, but the CI is now green finally!

Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@notgull notgull merged commit b87debd into Smithay:master Jun 20, 2024
14 checks passed
@notgull notgull mentioned this pull request Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants